package org.dromara.mall.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.TableField;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.mall.domain.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * package:CategoryVo
 * @author MrLei QQ:235921049
 * @date 2024-05-21
 * desc:
 */

@ExcelIgnoreUnannotated
@AutoMapper(target = MallGoods.class)
@Data
public class GoodsVo implements Serializable {

    /*ID*/
    private Long id;
    /**
     * 品牌ID
     */
    private Long brandId;

    /**
     * 商品分类
     */
    private Long cate1Id;
    private Long cate2Id;
    private Long cate3Id;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品副标题
     */
    private String subName;

    /**
     * 商品编号
     */
    private String goodsNo;
    private String ossId;

    /**
     * 主图
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "ossId")
    private String imgUrl;

    private String specIds;
    /*价格*/
    private BigDecimal price;
    /*市场价格*/
    private BigDecimal oldPrice;

    /**
     * 销售量
     */
    private Integer sale;

    /**
     * 收藏量
     */
    private Integer collect;
    /*评论量*/
    private Integer comment;
    /*总库存*/
    private Integer stock;


    /**
     * 上架状态
     */
    private Integer status;

    /**
     * 审核状态
     */
    private Integer verify;

    /**
     * 拒绝原因
     */
    private String refuseInfo;

    /**
     * 运费模版 0默认
     */
    private Integer freightId;

    /**
     * 手机端详情
     */
    private String contentMobile;

    /**
     * 是否推荐商家首页
     */
    private Integer isRecommend;

    /**
     * 是否推荐主站首页
     */
    private Integer isMaster;
    /*其他*/
    //商品sku
    private List<MallGoodsSkus> skus;
    /*商品规格*/
    private List<MallGoodsSpec> specs;
    /*商品详情*/
    private MallGoodsDetails details;
    /*品牌*/
    private String brandName;
    /*分类名称*/
    private String categoryName;
}
